package it.polimi.swimv2.remote;

import it.polimi.swimv2.exception.LoginManagerException;
import it.polimi.swimv2.session.UserRole;

import javax.ejb.Remote;

@Remote
public interface LoginManagerRemote {
	
	/**
	 * returns true if the authentication keys are correct.
	 * 
	 * @param username
	 * @param password
	 * @return true if authentication keys are correct.
	 * @throws LoginManagerException
	 */
	public UserRole authenticate(String username, String password)
			throws LoginManagerException;
}
